<!-- Page Content -->
<div class="page-content">
    <!-- Page Breadcrumb -->
    <div class="page-breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <a href="/admin">系统</a>
            </li>
            <li class="active">内页管理</li>
        </ul>
    </div>
    <!-- /Page Breadcrumb -->

    <!-- Page Body -->
    <div class="page-body">

<!--        <button type="button" tooltip="添加内页" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = '{:url('add')}'"> <i class="fa fa-plus"></i> Add</button>-->
        <div class="row">
            <div class="col-lg-12 col-sm-12 col-xs-12">
                <div class="widget">
                    <div class="widget-body">
                        <div class="flip-scroll">
                            <form action="" method="post">
                                <table class="table table-bordered table-hover">
                                    <thead class="">
                                    <tr>
                                        <th class="text-center" width="10%">ID</th>
                                        <th class="text-center">标题</th>
                                        <th class="text-center">关键字</th>
                                        <th class="text-center">描述</th>
                                        <th class="text-center" width="20%">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {volist name="others" id="v"}
                                    <tr>
                                        <td align="center">{$v.id}</td>
                                        <td>
                                            <?php
                                            echo mb_substr($v['title'], 0,9,'utf-8');
                                            if(strlen($v['title'])>9){echo '...';}
                                            ?>
                                        </td>
                                        <td>
                                            <?php
                                            echo mb_substr($v['keywords'], 0,9,'utf-8');
                                            if(strlen($v['title'])>9){echo '...';}
                                            ?>
                                        </td>
                                        <td>
                                            <?php
                                            echo mb_substr($v['desc'], 0,9,'utf-8');
                                            if(strlen($v['title'])>9){echo '...';}
                                            ?>
                                        </td>
                                        <td align="center">
                                            <a href="{:url('edit',array('id'=>$v['id']))}" class="btn btn-primary btn-sm shiny">
                                                <i class="fa fa-edit"></i> 编辑
                                            </a>
                                        </td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </form>
                        </div>
                        <div class="page">
                            {$others->render()}
                        </div>
                        <div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <!-- /Page Body -->
</div>
<!-- /Page Content -->
